package com.vcom.sms;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamConverter;

/**
 * Created by Dean on 2015/5/5.
 */
@XStreamAlias("Task")
public class Task {

    @XStreamAlias("Recive_Phone_Number")
    private final String mobile;

    @XStreamAlias("Content")
    @XStreamConverter(CDATAConverter.class)
    private final String content;

    @XStreamAlias("Search_ID")
    private String requestId;

    public Task(String mobile, String content) {
        this.mobile = mobile;
        this.content = content;
        requestId = "" + System.currentTimeMillis();
    }

    public String getMobile() {
        return mobile;
    }

    public String getContent() {
        return content;
    }

    public String getRequestId() {
        return requestId;
    }

    public void setRequestId(String requestId) {
        this.requestId = requestId;
    }

    @Override
    public String toString() {
        return "Task{" +
                "mobile='" + mobile + '\'' +
                ", content='" + content + '\'' +
                ", requestId='" + requestId + '\'' +
                '}';
    }
}
